package com.atguigu.behavior.memento;

import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

public class CareTaker {
    @Getter
    private List<Memento> mementoList=new ArrayList<>();


    public void addMemento(Memento memento){
        mementoList.add(memento);
    }


}
